package com.fy;


public class test {
    /*static String json_str="{\"catalogue_id\":1,\"data\":[{\"ID\":\"634\",\"Name\":\"于东\"},{\"ID\":\"822\",\"Name\":\"于祎\"}," +
            "{\"ID\":\"782\",\"Name\":\"于燕\"},{\"ID\":\"636\",\"Name\":\"于玲\"}," +
            "{\"ID\":\"841\",\"Name\":\"于浩\"},{\"ID\":\"383\",\"Name\":\"于娟\"}]}";*/

   /* static  int catalogue_id =1;

*/
   /* public static void main(String[] args) throws JSONException {
        JSONObject jsonObject  =   JSONObject.fromObject(json_str);
        //String s =  (String) jsonObject.get("Name");
        int s  =  jsonObject.getInt("total");//目录名称
        JSONArray jsonArray =  jsonObject.getJSONArray("data");


        System.out.println(jsonArray.size());
        for (int i =0;i<jsonArray.size();i++){
            JSONObject date  = JSONObject.fromObject(jsonArray.get(i));
            System.out.println("ID:"+date.getString("ID"));
            System.out.println("Name:"+date.getString("Name"));
        }*/
   static String userId = "1";
   public static void main(String[] args) {
//        String tableName = "t_user";
//        String entity = "Tuser";
//        String mapper = "TuserMapper";
//
//        TuserMapper extends BaseMapper()
//       {
//
//           batchInser()
//       }
//
//       BaseMapper bean = SpringUtils.getBean(entity + "Mapper");
//       BaseMapper.batchInser(list)
     /*  Integer examinationTime = 30;
       String recordTime = "600";

       Long time = Long.valueOf((examinationTime*60 - Integer.parseInt(recordTime)));
       System.out.println(time);
       try {
           recordTime = DateUtil.longtime(Long.valueOf(time));
       } catch (Exception e) {
           recordTime = time.toString();
          e.printStackTrace();

       }
       System.out.println(recordTime);*/
       String str = "398.555855";
       String[] split = str.split("\\.");

       System.out.println(split.length);
   }

/*    static  long date =  1586336183171L;
 *//*   public static void main(String[] args) {
        Date dateold = new Date(date);
        String

    }*//*
 public static void main(String[] args)  throws ParseException {
     Date dateold  = new Date(date);
     String formatType = "yyyy年MM月dd日 HH时mm分ss秒";
     String sDateTime = dateToString(dateold,formatType);
     Date date = stringToDate(sDateTime, formatType);
     System.out.println(date);
 }
    public static String dateToString(Date data, String formatType) {
        return new SimpleDateFormat(formatType).format(data);
    }
    public static Date stringToDate(String strTime, String formatType)
            throws ParseException {
        SimpleDateFormat formatter = new SimpleDateFormat(formatType);
        Date date = null;
        date = formatter.parse(strTime);
        return date;
    }*/

  /*  public static void main(String[] args) {
        Date date  = new Date();
        System.out.println(date.getTime());
    }*/
}
